package com.lhy.wcss.web.controller;

import com.lhy.wcss.model.vo.StuVO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.lhy.wcss.common.JsonResponse;
import com.lhy.wcss.service.StudentDataService;
import com.lhy.wcss.model.domain.StudentData;

import java.util.List;


@Controller
@RequestMapping("/studentData")
public class StudentDataController {

    private final Logger logger = LoggerFactory.getLogger( StudentDataController.class );

    @Autowired
    private StudentDataService studentDataService;

    @GetMapping("/stu")
    @ResponseBody
    public JsonResponse stuData(){
        List<StuVO> list=studentDataService.statCollege();
        return JsonResponse.success(list);
    }


}

